<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        我是 {{ obj.name }} 今年 {{ obj.age }} 岁了
        <!-- {{ obj }} -->
    </div>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        // console.log(Vue);
        
        const {reactive, createApp} = Vue
        // console.log(createApp);
        
        createApp({
            setup() {
                // reactive 里面必须传入对象
                const obj = reactive({
                    age: 12,
                    name: 'lisi'
                })
                console.log(obj);
                
                return {
                    obj
                };
            }
        }).mount("#app");

    </script>
</body>
</html>